package com.xiaoh.leetcode.easy;

/**
 * @author xiaoh
 * @ClassName DefangIPaddr_1108
 * @Description TODO
 * @Date 2021/2/18 下午4:33
 * @Version 1.0
 */
public class DefangIPaddr_1108 {

    public static String defangIPaddr(String address) {

        return address.replace(".", "[.]");
    }

    public static void main(String[] args) {
        String ipaddr = "192.168.8.1";
        String result = defangIPaddr(ipaddr);
        System.out.println(result);
    }
}
